Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mint): fix pruning panic, add developer and community funding #161

Merged
merged 10 commits into from
Jun 30, 2022

Conversation

gsora
Copy link
Contributor

@gsora gsora commented Jun 28, 2022

Pretty much what the title says.

Before running this PR:

  1. all nodes state must be rolled back to height 1151280
  2. all nodes must go back to node version v1.0.0-rc2 with pruning in any mode except nothing (we wanna have pruning!)
  3. a new proposal for upgrade testnetUpgrade20220706 must be created and approved

The fix for the pruning issue has been taken from cosmos/ibc-go#1088.

Please, review the issue as well as this PR before giving a ✅!

Thanks <3


PSA

This PR previously hardcoded utsp as the default MintDenom for the x/mint module params, but after a conversation with @noandrea we decided it's best we leave it as sdk.DefaultBondDenom, and let the chain admin set denoms via genesis.json editing.

The 2022-07-06 migration will still set MintDenom to utsp, but we do that to try having a working SDK migration in place.

#167 will take care of generalizing tests instead of testing for "stake" everywhere, so this PR must be merged first.

Edit

#167 has been approved and merged here instead, so this PR now enables developer and community funding as well.

@gsora gsora requested a review from a team as a code owner June 28, 2022 13:36
@gsora gsora requested review from noandrea and PaddyMc June 28, 2022 13:38
We configure "utsp" via manual genesis.json editing. The migration
still writes "utsp" because it's fixing our bad behavior
(we should've edited the genesis).
@gsora gsora changed the title fix(mint): make sure to use utsp mint denom, fix pruning panic fix(mint): fix pruning panic Jun 30, 2022
Copy link
Contributor

@noandrea noandrea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔝

gsora and others added 2 commits June 30, 2022 12:21
* fix: disable CGO for node builds

* feat(devnet): adding script to spin up local devnet (#160)

* feat(mint): distribute developer and community funds

This commit enables distribution of 2*10% off the newly-minted tokens
to the x/distribution community pool, and the developer funding pool.
The developer funding pool is represented as a standard Cosmos address,
which should be determined at genesis time.

Co-authored-by: Andrea Giacobino <no.andrea@gmail.com>
Co-authored-by: PaddyMc <paddymchale@hotmail.com>
@gsora gsora changed the title fix(mint): fix pruning panic fix(mint): fix pruning panic, add developer and community funding Jun 30, 2022
@gsora gsora merged commit 7796175 into main Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants